package com.jiangxiaofei.citycloud.mvp;

import android.content.Context;

import com.jiangxiaofei.citycloud.httpUtil.BaseView;
import com.jiangxiaofei.citycloud.httpUtil.OnLoadDataIm;
import com.jiangxiaofei.citycloud.param.VillageArticleParam;
import com.jiangxiaofei.citycloud.param.VillageListParam;

/**
 * Created by 上官林超 on 2017/7/30.
 * MVP
 */

public class VillageConstant {


    /**
     * 获取美丽乡村菜单
     */
    public interface VillageMenuModel {
        void getVillageMenu(Context mContext, OnLoadDataIm callBack);
    }

    public interface VillagemMenuView extends BaseView {
        void getVillageMenu();
    }

    public interface VillageMenuPersenter {
        void getVillageMenu();
    }

    //    获取消息列表
    public interface VillageListModel {
        void getVillageList(Context mContext, String page, String category, OnLoadDataIm callBack);
    }

    public interface VillageListView extends BaseView {
        VillageListParam getVillageList();
    }

    public interface VillageListPersenter {
        void getVillageList();
    }

    //    获取乡村消息详情
    public interface VillageDetailModel {
        void getVillageDetail(Context mContext, int id, OnLoadDataIm callBack);
    }

    public interface VillageDetailView extends BaseView {
        int getVillageDetail();
    }

    public interface VillageDetailPersenter {
        void getVillageDetail();
    }

    //发布文章
    public interface VillageAddArticleModel {
        void addVillageArticle(Context mContext, String title, String content, int author,
                               int category, String img, String location, OnLoadDataIm callBack);
    }

    public interface VillageAddArticleView extends BaseView {
        VillageArticleParam addVillageArticle();
    }

    public interface VillageAddArticlePersenter {
        void addVillageArticle();
    }

    //修改文章
    public interface VillageUpdateArticleModel {
        void updateVillageArticle(Context mContext, String title, String content, int author,
                                  int category, String img, String location, int id, OnLoadDataIm callBack);
    }

    public interface VillageUpdateArticleView extends BaseView {
        VillageArticleParam updateVillageArticle();
    }

    public interface VillageUpdateArticlePersenter {
        void updateVillageArticle();
    }

}
